package lab02.test26;

public class ExceptionTest {
    public static void main(String[] args) {

        int dividend = 6;
        int divider = 0;

        try{
            System.out.println(dividend+ "/" + divider + "=" + dividend /divider );
        }catch (ArithmeticException a){
            System.out.println("除数为0");
        }finally {
            System.out.println("已执行");
        }
    }
}
